package com.bjsxt.ego.back.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.bjsxt.ego.common.controller.BaseController;
import com.bjsxt.ego.common.util.ConstatFinalUtil;
import com.bjsxt.ego.users.pojo.Admins;
import com.bjsxt.ego.users.service.IUsersService;

/**
 *  没有登录的Controller
 * @author 章鸿敏
 *
 */
@Controller
public class NoLoginController extends BaseController
{
	@Resource
	private IUsersService usersService;
	
	/**
	 *  管理员列表
	 * @return
	 */
	@RequestMapping("/adminsList")
	public String adminsList(HttpServletRequest request)
	{
		ConstatFinalUtil.LOGGER.info("----adminsList----");
		Map<String, Object> condMap = new HashMap<String,Object>();
		
		List<Admins> adminsList = this.usersService.findCondListAdminsService(null, condMap);
		request.setAttribute("adminsList", adminsList);
		return "/back/adminsList";
	}
}
